package pile.pay.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * <p>
 * 占位订单
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-29
 */
@Getter
@Setter
@TableName("sys_occupy_order")
@ApiModel(value = "OccupyOrder对象", description = "占位订单")
public class OccupyOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("占位订单id")
    @TableId(value = "occupy_order_id", type = IdType.AUTO)
    private Integer occupyOrderId;

    @ApiModelProperty("用户id")
    private Integer memberId;

    @ApiModelProperty("电站id")
    private Integer stationId;

    @ApiModelProperty("充电单号 /交易流水号")
    private String startChargeSeq;

    @ApiModelProperty("开始充电时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束充电时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("开始占位时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date startOccupyTime;

    @ApiModelProperty("结束占位时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endOccupyTime;

    @ApiModelProperty("占位时间/分钟")
    private Integer occupyTime;

    @ApiModelProperty("占位费")
    private BigDecimal occupyingFee;

    @ApiModelProperty("1/已处理 2/未处理")
    private Integer status;

    @ApiModelProperty("是否删除，1是0否")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("删除时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("支付订单号")
    private String paymentOrderNumber;

    @ApiModelProperty("支付状态 1/未支付 2/已支付")
    private Integer paymentStatus;

    @ApiModelProperty("占位渠道 0/卫莱电微信小程序 1/卫莱电支付宝小程序 2/快电 3/阿凡电微信小程序 4/阿凡电支付宝小程序 5/新电途")
    private Integer channel;

    @ApiModelProperty("0未统计 1已统计")
    private Integer isStatistics;

    @ApiModelProperty("1未结算 2已结算")
    private Integer isSettlement;

    @ApiModelProperty("渠道 1/卫莱电微信小程序  2/卫莱电支付宝小程序 3/阿凡电微信小程序 4/阿凡电支付宝小程序")
    private Integer occupyChannel;


}
